home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1810 / 1810.xpi / chrome / showcase.jar / content / showcaseOverlay.xul < prev    next >
Extensible Markup Language  |  2010-01-17  |  6KB  |  134 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://showcase/skin/toolbar.css" type="text/css"?>
  4.  
  5. <!DOCTYPE overlay SYSTEM "chrome://showcase/locale/overlay.dtd">
  6.  
  7. <overlay id="showcaseOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  8.   <script type="application/x-javascript" src="showcaseOverlay.js" />
  9.   <script type="application/x-javascript" src="cache.js" />
  10.  
  11.   <stringbundleset id="stringbundleset">
  12.     <stringbundle id="bundle_showcaseoverlay"
  13.         src="chrome://showcase/locale/overlay.properties"/>
  14.     
  15.   </stringbundleset>
  16.  
  17.   
  18.   <commandset id="mainCommandSet">
  19.   
  20.     <!-- command id="DebugShowcase" oncommand="showShowcaseDebug();"/ -->
  21.     <command id="ViewShowcase" oncommand="showShowcase(true, false);"/>
  22.     <command id="ViewShowcaseThisWindow" oncommand="showShowcase(false, false);"/>
  23.     <command id="ViewShowcaseTab" oncommand="showShowcase(true, true);"/>
  24.     <command id="ViewShowcaseThisWindowTab" oncommand="showShowcase(false, true);"/>
  25.     <command id="ViewShowcaseOptions" oncommand="showShowcaseOptions();"/>
  26.     <command id="ToolbarShowcase" oncommand="showShowcaseAllWindows(event);"/>
  27.     <command id="ToolbarShowcaseThisWindow" oncommand="showShowcaseThisWindow(event);"/>
  28.     <command id="ToolbarShowcaseTab" oncommand="showShowcaseTabAllWindows(event);"/>
  29.     <command id="ToolbarShowcaseThisWindowTab" oncommand="showShowcaseTabThisWindow(event);"/>
  30.   </commandset>
  31.  
  32.   
  33.   <keyset id="mainKeyset">
  34.   
  35.     <key id="key_showcase" keycode="VK_F12" modifiers="shift" command="ViewShowcaseThisWindow"/>
  36.     <key id="key_showcase_all_windows" keycode="VK_F12" command="ViewShowcase"/>
  37.     <key id="key_showcase_sidebar" key="D" modifiers="accel,alt" observes="viewShowcaseThisWindowSidebar"/>
  38.     <key id="key_showcase_all_windows_sidebar" key="S" modifiers="accel,alt" observes="viewShowcaseSidebar"/>
  39.     <key id="key_showcase_tab" key="Y" modifiers="accel,alt" command="ViewShowcaseThisWindowTab"/>
  40.     <key id="key_showcase_all_windows_tab" key="T" modifiers="accel,alt" command="ViewShowcaseTab"/>
  41.   </keyset>
  42.  
  43.   <!-- Sidebars -->
  44.   <broadcasterset id="mainBroadcasterSet">
  45.     <broadcaster id="viewShowcaseSidebar"
  46.           autoCheck="false" 
  47.           label="&showcaseSidebar.label;"
  48.           type="checkbox"
  49.           group="sidebar"
  50.           sidebarurl="chrome://showcase/content/showcaseSidebar.xul?global=true"
  51.           oncommand="toggleSidebar('viewShowcaseSidebar');"/>
  52.     <broadcaster id="viewShowcaseThisWindowSidebar"
  53.           autoCheck="false" 
  54.           label="&showcaseThisWindowSidebar.label;"
  55.           type="checkbox"
  56.           group="sidebar"
  57.           sidebarurl="chrome://showcase/content/showcaseSidebar.xul"
  58.           oncommand="toggleSidebar('viewShowcaseThisWindowSidebar');"/>
  59.   </broadcasterset>
  60.  
  61.  
  62.   <toolbarpalette id="BrowserToolbarPalette">
  63.     <toolbarbutton id="btn_showcasewindow" 
  64.       class="toolbarbutton-1 chromeclass-toolbar-additional"
  65.       label="&showcaseThisWindow.label;"
  66.       tooltiptext="&showcaseThisWindow.tooltip;"
  67.       command="ToolbarShowcaseThisWindow"/>
  68.     <toolbarbutton id="btn_showcase" 
  69.       class="toolbarbutton-1 chromeclass-toolbar-additional"
  70.       label="&showcase.label;"
  71.       tooltiptext="&showcase.tooltip;"
  72.       command="ToolbarShowcase"/>
  73.     <toolbarbutton id="btn_showcasewindowtab" 
  74.       class="toolbarbutton-1 chromeclass-toolbar-additional"
  75.       label="&showcaseThisWindowTab.label;"
  76.       tooltiptext="&showcaseThisWindowTab.tooltip;"
  77.       command="ToolbarShowcaseThisWindowTab"/>
  78.     <toolbarbutton id="btn_showcasetab" 
  79.       class="toolbarbutton-1 chromeclass-toolbar-additional"
  80.       label="&showcaseTab.label;"
  81.       tooltiptext="&showcaseTab.tooltip;"
  82.       command="ToolbarShowcaseTab"/>
  83.     <toolbarbutton id="btn_showcasewindowsidebar"
  84.             class="toolbarbutton-1 chromeclass-toolbar-additional"
  85.             observes="viewShowcaseThisWindowSidebar"
  86.             tooltiptext="&showcaseThisWindowSidebar.tooltip;"/>
  87.     <toolbarbutton id="btn_showcasesidebar"
  88.             class="toolbarbutton-1 chromeclass-toolbar-additional"
  89.             observes="viewShowcaseSidebar"
  90.             tooltiptext="&showcaseSidebar.tooltip;"/>
  91.   </toolbarpalette>
  92.  
  93.  
  94.   <popupset id="mainPopupSet">
  95.     <popup id="showcaseAllTabsPopup"
  96.          class="showcase-alltabs-popup"
  97.          position="after_end">
  98.     </popup>
  99.     <popup id="showcaseLeftTabsPopup"
  100.          class="showcase-lefttabs-popup"
  101.          position="after_start">
  102.     </popup>
  103.     <popup id="showcaseRightTabsPopup"
  104.          class="showcase-righttabs-popup"
  105.          position="after_end">
  106.     </popup>
  107.     <tooltip id="showcaseTooltipLeftArrow"
  108.          class="showcase-tooltip-leftarrow" />
  109.     <tooltip id="showcaseTooltipRightArrow"
  110.          class="showcase-tooltip-rightarrow" />
  111.   </popupset>
  112.  
  113.   <menupopup id="viewSidebarMenu">
  114.     <menuitem id="showcaseThisWindowSidebarMenuItem" observes="viewShowcaseThisWindowSidebar" key="key_showcase_sidebar"/>
  115.     <menuitem id="showcaseSidebarMenuItem" observes="viewShowcaseSidebar" key="key_showcase_all_windows_sidebar"/>
  116.   </menupopup>
  117.  
  118.   
  119.   <menupopup id="menu_viewPopup">
  120.     <menu id="menu_showcase" label="&showcaseMenu.label;" insertafter="viewSidebarMenuMenu">
  121.       <menupopup>
  122.         <menuitem id="showcaseThisWindowMenuItem" label="&showcaseThisWindow.label;" key="key_showcase" command="ViewShowcaseThisWindow" />
  123.         <menuitem id="showcaseMenuItem" label="&showcase.label;" key="key_showcase_all_windows" command="ViewShowcase"/>
  124.         <menuitem id="showcaseThisWindowTabMenuItem" label="&showcaseThisWindowTab.label;" key="key_showcase_tab" command="ViewShowcaseThisWindowTab" />
  125.         <menuitem id="showcaseTabMenuItem" label="&showcaseTab.label;" key="key_showcase_all_windows_tab" command="ViewShowcaseTab" />
  126.         
  127.         <menuseparator id="showcaseMenuSeparator" />
  128.         <menuitem id="showcaseOptionsMenuItem" label="&showcaseOptions.label;" command="ViewShowcaseOptions" />
  129.         
  130.       </menupopup>
  131.     </menu>
  132.   </menupopup>
  133.   
  134. </overlay>